package com.ai.service.made;

import com.ai.common.CommonResponse;
import com.ai.entity.file.Audio;
import com.ai.entity.file.AudioPage;
import com.ai.model.dto.CoalAudioVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author：xiaosheng
 * @Date：2024/5/15 10:18
 */
@Service
public interface AudioService extends IService<Audio> {


    CommonResponse upload(MultipartFile multipartFile, String name);

    Audio oneById(Integer id);

    CommonResponse modifyInfo(Audio audio);

    CommonResponse delete(Audio audio);

    CommonResponse uploadToServer(Integer fileId, Integer serverId);

    CommonResponse selectByPage(AudioPage audioPage);

    /**
     * 上传音频文件绑定功能信息
     * @param file 音频文件
     * @param coalAudioVo 文件信息
     * @return
     */
    CommonResponse uploadAudio(MultipartFile file, CoalAudioVo coalAudioVo);
}
